package com.atguigu.day07.HomeWork;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/7 10:20
 * @注释
 */
public class RabbitDemo {
    public static void main(String[] args) {
        System.out.println(f(24));
    }

    public static long f(int n){
        if(n==1 || n==2){
            return 1;
        }
        return f(n-1) + f(n-2);
    }
}
